﻿$(function () {
    $("#ctl00_cph_main_btnSub").click(function () {
        $(".gbsellprice").each(function () {
            var id = $(this).attr("id");
            var price = $(this).val();
            var hdnarray = $("#ctl00_cph_main_goodarray").val();
            $("#ctl00_cph_main_goodarray").val(hdnarray + "@#@" + id + "," + price + "@#@");
        });        
    });

    $("#goods").on("click", ".delgood", function () {
        $(this).parent().parent().remove();
        formatnum();
    });

    
});

function formatnum()
{
    var numarray = $("#goods").find(".shownum").each(function (i) {
        $(this).html(i+1);
    });

    
}